<?php

class m120620_111943_create_identity extends EDbMigration {

	public function safeUp() {
		$columns = array(
			'id'=>'pk',
			'employeeId'=>'integer not null',
			'name'=>'varchar(128) not null',
			'code'=>'varchar(128)',
			'status'=>'varchar(64)',
			'expiredDate'=>'date',
			'note'=>'text',
			'createdAt'=>'datetime',
			'updatedAt'=>'datetime',
			'createdBy'=>'integer',
			'updatedBy'=>'integer',
		);
		$this->createTable('identities', $columns);
	}

	public function safeDown() {
		$this->dropTable('identities');
	}

}